import { http } from "@/utils/http";
import { baseUrlApi } from "../utils";

// export const GetCompanySpecificInformation = (params: string) => {
//   return http.request<any>(
//     "get",
//     baseUrlApi("/CompanyDataProperty/GetCompanySpecificInformation?" + params)
//   );
// };

export const DataProcessGetFolder = (data: object) => {
  return http.request<any>("post", baseUrlApi("/DataProcess/GetFolder"), {
    data
  });
};

// 添加
export const DataProcessInsertLevel = (data: object) => {
  return http.request<any>("post", baseUrlApi("/DataProcess/InsertLevel"), {
    data
  });
};

// 修改
export const DataProcessUpdateLevel = (data: object) => {
  return http.request<any>("post", baseUrlApi("/DataProcess/UpdateLevel"), {
    data
  });
};

// 删除
export const DataProcessDeleteLevel = (params: string) => {
  return http.request<any>(
    "post",
    baseUrlApi("/DataProcess/DeleteLevel?" + params)
  );
};

// 文字类 -- 表格类 添加-修改
export const DataProcessUpload = (data: object) => {
  return http.request<any>("post", baseUrlApi("/DataProcess/Upload"), {
    data
  });
};

// 表格类层级
export const DataProcessGetSelect = () => {
  return http.request<any>("get", baseUrlApi("/DataProcess/GetSelect"));
};

// TOD 获取表格类  和 文章类数据列表
export const DataProcessGetDataFile = (data: object) => {
  return http.request<any>("post", baseUrlApi("/DataProcess/GetDataFile"), {
    data
  });
};

// TOD 获取表格类  和 文章类数据 删除
export const DataProcessDeleteFile = (params: string) => {
  return http.request<any>(
    "post",
    baseUrlApi("/DataProcess/DeleteFile?" + params)
  );
};
